package net.oschina.app.viewpagerfragment.general;

import net.oschina.app.adapter.general.RecommendListAdapter;
import net.oschina.app.base.BaseListAdapter;
import net.oschina.app.base.BaseListFragment;
import net.oschina.app.bean2.GeneralBlogBean;
import net.oschina.app.protocol.AccessProtocol;
import net.oschina.app.protocol.general.RecommendProtocol;

import java.util.List;

/**
 * Created by Shinelon on 2017/1/13.
 */

public class RecommendFragment extends BaseListFragment {

    @Override
    protected List parseData(Object body) {
        return ((GeneralBlogBean)body).getBlogs();
    }

    @Override
    protected AccessProtocol getProtocol() {
        return new RecommendProtocol();
    }

    @Override
    protected BaseListAdapter getAdapter() {
        return new RecommendListAdapter();
    }
}
